﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace AccessConfigurator.dao
{
   public class daoConfigurator
    {
       public static bool InsertFeature(string featurename, string value)
       {

           MySqlConnection conn = DatabaseConnection.getConnection();
           string Query = "insert into configurator(featurename,code) values('" + featurename + "','" + value + "');";
           MySqlCommand cmd = new MySqlCommand(Query, conn);
           conn.Open();
           int result = cmd.ExecuteNonQuery();

           if (result > 0)
           {

               return true;
           }
           else
           {
               return false;
           }
           conn.Close();
       }
    }
}
